import { IAdminStore } from "@/headers/admin/store.h";
import { Store,Getter, GetterTree } from "vuex";
type Ctx = Store<IAdminStore>


export function userIsLogin(store:Ctx):boolean {
    return !!store.state.userInfo
}

const getter:GetterTree<any,any> = {
    userIsLogin
};
export const AdminGetter = getter;
